home *** CD-ROM | disk | FTP | other *** search
- ;C
- ┌─────────────────────────────────────────────────────────────────────────────┐
- │ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ EXAMPLE #13 ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ │
- └─────────────────────────────────────────────────────────────────────────────┘
- ┌─────────────────────────────────────────────────────────────────────────────┐
- │ │
- │ THE INPUT FILE: This is the same input file we used in Example #4 -- a │
- │ list of invoices for a computer store. │
- │ │
- │ WHAT WE WANT: We want to convert the data into an 80-character fixed- │
- │ record-length file. This means that we will not have │
- │ any carriage returns or line feeds in the output file. │
- │ │
- │ HOW WE DO IT: We set a flag variable (named "process") to enable the │
- │ output once we're past the headings. When the flag is │
- │ set, we pad each line to 80 characters (using the PAD │
- │ command), and send the data to the output file, using │
- │ the OUT command. (We do not use OUTEND, since that │
- │ places an end-of-line [carriage return/linefeed] after │
- │ the output line.) │
- │ │
- └─────────────────────────────────────────────────────────────────────────────┘
-
- ;P
-